<?php

namespace app\admin\validate;

use think\Validate;

class IndexValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        'nickname'=>'require|min:2|max:16',
    ];

    protected $message = [
        'nickname.require'=>'别名不能为空',
        'nickname.require'=>'别名不能小于两个字符',
        'nickname.require'=>'别名不能大于十六个字符'
    ];
}
